home *** CD-ROM | disk | FTP | other *** search
- /* getmodename */
- #include <stdio.h>
- #include <conio.h>
- #include <graphics.h>
- main()
- {
- int graphdriver = DETECT,graphmode;
- /* Detect and initialize the graphics system */
- initgraph(&graphdriver,&graphmode,"c:\\turboc");
- /* Display the name of current mode */
- printf("Current mode is: %s\n",getmodename(graphmode));
- /* Wait for a keystroke before exiting */
- getch();
- closegraph();
- }